/**
 * "botania:terra_plate/terrasteel_ingot":{"recipe":{
 * "type":"botania:terra_plate",
 * 
 * "mana":500000,
 * "ingredients":[{"item":"botania:manasteel_ingot"},{"item":"botania:mana_pearl"},{"item":"botania:mana_diamond"}],
 * "result":{"item":"botania:terrasteel_ingot"}}},
 */





onEvent('recipes', event => {
    //泰拉凝聚板
    const terra_plate_list = [
        {
            "mana": 5000,
            "ingredients": [
                { "item": 'emendatusenigmatica:iridium_ingot' },
                { "item": 'bloodmagic:defaultcrystal' },
                { "item": 'botania:pixie_dust' }],
            "result": { "item": 'botania:terrasteel_ingot' },
        },
        {
            "mana": 50000,
            "ingredients": [
                { "item": 'psi:ebony_substance' },
                { "item": 'bloodmagic:demonslate' },
                { "item": 'bloodmagic:ingot_hellforged' }],
            "result": { "item": 'psi:ebony_psimetal' },
        },
        {
            "mana": 50000,
            "ingredients": [
                { "item": 'psi:ivory_substance' },
                { "item": 'kubejs:undead_mixture' },
                { "item": 'ars_nouveau:marvelous_clay' }],
            "result": { "item": 'psi:ivory_psimetal' },
        },

        {
            "ingredients": [
                { "item": 'thermal:upgrade_augment_2' },
                { "item": 'interactive_corporea:requesting_halo' },
                { "item": 'extrastorage:neural_processor' }],
            "result": { "item":  'thermal:upgrade_augment_3' },
            "mana": 50000
        },
    ]

    //精灵门
    const elven_trade_list = [
        {
            "ingredients": [{ "item": "botania:pixie_dust" }],
            "output": [{ "item": "botania:mana_pearl" }]
        },
        {
            "ingredients": [{ "item": 'refinedstorage:raw_improved_processor' }],
            "output": [{ "item": 'refinedstorage:improved_processor' }]
        },
        {
            "ingredients": [{ "item": 'refinedstorage:raw_basic_processor' }],
            "output": [{ "item": 'refinedstorage:basic_processor' }]
        },
        {
            "ingredients": [{ "item": 'refinedstorage:raw_advanced_processor' }],
            "output": [{ "item": 'refinedstorage:advanced_processor' }]
        },
        {
            "ingredients": [
                { "item": 'thermal:enderium_dust' },
                { "item": 'elementalcraft:burnt_glass' },
                { "item": 'elementalcraft:burnt_glass' }
            ],
            "output": [{ "item": 'thermal:enderium_glass', "count": 2 }]
        },
        {
            "ingredients": [
                { "tag": 'forge:dusts/obsidian' },
                { "item": 'elementalcraft:burnt_glass' },
                { "item": 'elementalcraft:burnt_glass' }
            ],
            "output": [{ "item": 'thermal:obsidian_glass', "count": 2 }]
        },
        {
            "ingredients": [
                { "item": 'emendatusenigmatica:enderium_ingot' },
                { "item": 'emendatusenigmatica:enderium_ingot' }
            ],
            "output": [{ "item": 'botania:elementium_ingot' }]
        },
        {
            "ingredients": [
                { "item": 'thermal:obsidian_glass' },
            ],
            "output": [{ "item": 'botania:elf_glass' }]
        },
        {
            "ingredients": [
                { "item": 'thermal_extra:dragon_bronze_ingot' },
                { "item": 'astralsorcery:starmetal_ingot' },
                { "item": 'botania:life_essence' },
                { "item": 'botania:life_essence' }
            ],
            "output": [{ "item": 'betternether:cincinnasite', "count": 2 }]
        },
        {
            "ingredients": [{ "item":'extrastorage:raw_neural_processor' }],
            "output": [{ "item": 'extrastorage:neural_processor' }]
        },
        {
            "ingredients": [
                { "item":'botania:rune_fire' },
                { "item":'bloodmagic:ingot_hellforged' }
            ],
            "output": [{ "item": 'eidolon:soul_shard'}]
        },
        {
            "ingredients": [
                { "item":'eidolon:soul_shard' },
                { "item":'eidolon:soul_shard' },
           
            ],
            "output": [{ "item": 'botania:dragonstone'}]
        },
        {
            "ingredients": [
                { "item":'ars_nouveau:wixie_charm'},
                { "item": 'kubejs:item_24'  },
                { "item": 'botania:pixie_dust' },
                { "item": 'kubejs:fus'  }
           
            ],
            "output": [{ "item":'thermal:upgrade_augment_1'}]
        }
    ]

    //符文祭坛
    const runic_altar_list = [
        {
            "mana": 200,
            "output": { "item": 'refinedstorage:raw_advanced_processor', "count": 2 },
            "ingredients": [
                { "item": 'immersiveengineering:wire_steel' },
                { "item": 'immersiveengineering:wire_steel' },
                { "item": 'immersiveengineering:wire_steel' },
                { "item": 'immersiveengineering:wire_steel' },
                { "item": 'immersiveengineering:wire_steel' },
                { "item": 'immersiveengineering:wire_steel' },
                { "item": 'emendatusenigmatica:enderium_nugget' },
                { "item": 'emendatusenigmatica:enderium_nugget' },
                { "item": 'refinedstorage:processor_binding' }
            ]
        },
        {
            "mana": 200,
            "output": { "item": 'extrastorage:raw_neural_processor', "count": 1 },
            "ingredients": [
                { "item": 'immersiveengineering:wire_lead' },
                { "item": 'immersiveengineering:wire_lead' },
                { "item": 'immersiveengineering:wire_lead' },
                { "item": 'immersiveengineering:wire_lead' },
                { "item": 'immersiveengineering:wire_lead' },
                { "item": 'immersiveengineering:wire_lead' },
                { "item": 'kubejs:item_24' },
                { "item": 'kubejs:item_24' },
                { "item": 'ars_nouveau:wixie_charm' }
            ]
        },
        {
            "mana": 200,
            "output": { "item": 'refinedstorage:raw_basic_processor', "count": 2 },
            "ingredients": [
                { "item": 'immersiveengineering:wire_aluminum' },
                { "item": 'immersiveengineering:wire_aluminum' },
                { "item": 'immersiveengineering:wire_aluminum' },
                { "item": 'immersiveengineering:wire_aluminum' },
                { "item": 'immersiveengineering:wire_aluminum' },
                { "item": 'immersiveengineering:wire_aluminum' },
                { "item": 'emendatusenigmatica:invar_nugget' },
                { "item": 'emendatusenigmatica:invar_nugget' },
                { "item": 'refinedstorage:processor_binding' }
            ]
        },
        {
            "mana": 200,
            "output": { "item": 'refinedstorage:raw_improved_processor', "count": 2 },
            "ingredients": [
                { "item": 'immersiveengineering:wire_electrum' },
                { "item": 'immersiveengineering:wire_electrum' },
                { "item": 'immersiveengineering:wire_electrum' },
                { "item": 'immersiveengineering:wire_electrum' },
                { "item": 'immersiveengineering:wire_electrum' },
                { "item": 'immersiveengineering:wire_electrum' },
                { "item": 'emendatusenigmatica:lumium_nugget' },
                { "item": 'emendatusenigmatica:lumium_nugget' },
                { "item": 'refinedstorage:processor_binding' }
            ]
        },
        {
            "mana": 20000,
            "output": { "item": 'betternether:bone_mushroom' },
            "ingredients": [
                { "item": 'botania:life_essence' },
                { "item": 'botania:life_essence' },
                { "item": 'botania:life_essence' },
                { "item": 'botania:life_essence' },
                { "item": 'kubejs:undead_mixture' },
                { "item": 'bloodmagic:growing_doubt' },
                { "item": 'bloodmagic:silk_touch_anointment' },
            ]
        },
        {
            "mana": 20000,
            "output": { "item": 'betternether:agave' },
            "ingredients": [
                { "item": 'botania:life_essence' },
                { "item": 'botania:life_essence' },
                { "item": 'botania:life_essence' },
                { "item": 'botania:life_essence' },
                { "item": 'kubejs:undead_mixture' },
                { "item": 'bloodmagic:fortune_anointment' },
                { "item": 'minecraft:nether_wart' },
            ]
        },
        {
            "mana": 80000,
            "output": { "item": 'refinedstorage:creative_controller' },
            "ingredients": [
                { "item": 'xnet:controller' },
                { "item": 'emendatusenigmatica:enderium_block' },
                { "item": 'refinedstorage:quartz_enriched_iron_block' },
                { "item": 'psi:psidust_block' },
                { "item": 'kubejs:party_2_ingot' },
            ]
        },
        {
            "mana": 2000,
            "output": { "item": 'kubejs:fus' },
            "ingredients": [
                { "item": 'kubejs:item_18' },
                { "item": 'minecraft:nether_wart' }, { "item": 'evilcraft:promise_acceptor_gold' }, { "item": 'bloodmagic:sulfur' }
            ]
        },
        {
            "mana": 2000,
            "output": { "item": 'kubejs:jita' },
            "ingredients": [
                { "item": 'kubejs:item_18' },
                { "item": 'astralsorcery:stardust' }, { "item": 'elementalcraft:aircrystal' }, { "item": 'evilcraft:ender_tear' }
            ]
        },
        {
            "mana": 2000,
            "output": { "item": 'kubejs:tano' },
            "ingredients": [
                { "item": 'kubejs:item_18' },
                { "item": 'forbidden_arcanus:corrupti_dust' }, { "item": 'bloodmagic:fortune_anointment' }, { "item": 'elementalcraft:air_silk' }
            ]
        },
        {
            "mana": 2000,
            "output": { "item": 'kubejs:bombadil' },
            "ingredients": [
                { "item": 'kubejs:item_18' },
                { "item": 'emendatusenigmatica:aluminum_rod' }, { "item": 'bloodmagic:soulgempetty' }, { "item": 'bloodmagic:soulgempetty' }
            ]
        },
        {
            "mana": 2000,
            "output": { "item": 'kubejs:zod' },
            "ingredients": [
                { "item": 'kubejs:item_18' },
                { "item": 'forbidden_arcanus:mundabitur_dust' },
                { "item": 'bloodmagic:silk_touch_anointment' },
                { "item": 'bloodmagic:throwing_dagger' }
            ]
        },
        {
            "mana": 2000,
            "output": { "item": 'botania:rune_water', count: 2 },
            "ingredients": [
                { "item": 'tconstruct:slimesteel_ingot' },
                { "item": 'bloodmagic:reagentwater' },
                { "item": 'betternether:bone_mushroom' },
                { "item": 'emendatusenigmatica:aluminum_rod' },
                { "item": 'evilcraft:blood_potash' },
                { "item": 'kubejs:item_18' },
            ]
        },
        {
            "mana": 2000,
            "output": { "item": 'botania:rune_fire', count: 2 },
            "ingredients": [
                { "item": 'tconstruct:slimesteel_ingot' },
                { "item": 'bloodmagic:reagentlava' },
                { "item": 'kubejs:infusion_ingot' },
                { "item": 'betternether:agave' },
                { "item": 'forbidden_arcanus:mundabitur_dust' },
                { "item": 'kubejs:item_18' },
            ]
        },
        {
            "mana": 20000,
            "output": { "item": 'betternether:nether_reed' },
            "ingredients": [
                { "item": 'astralsorcery:celestial_crystal' },
                { "item": 'kubejs:undead_mixture' },
                { "item": 'botania:life_essence' },
                { "item": 'botania:life_essence' },
                { "item": 'botania:life_essence' },
                { "item": 'botania:life_essence' },
                { "item": 'bloodmagic:looting_anointment' },
            ]
        },
        {
            "mana": 20000,
            "output": { "item": "botania:rune_air", count: 2 },
            "ingredients": [
                {
                    "item": "bloodmagic:demonslate"
                },
                {
                    "item": "bloodmagic:reagentair"
                },
                {
                    "item": "minecraft:feather"
                },
                {
                    "item": "botania:manasteel_ingot"
                },
                {
                    "item": "betternether:cincinnasite"
                },
                {
                    "item": 'kubejs:item_18'
                }
            ]
        },
        {
            "mana": 40000,
            "output": { "item": "botania:rune_autumn", count: 2 },
            "ingredients": [
                {
                    "item": "thermal_extra:vukaium_ingot"
                }, {
                    "item": "thermal_extra:dragon_bronze_ingot"
                }, {
                    "item": "kubejs:jita"
                }, {
                    "item": "botania:rune_air"
                }, {
                    "item": "botania:rune_fire"
                },
            ]
        },
        {
            "mana": 20000,
            "output": { "item": "botania:rune_earth", count: 2 },
            "ingredients": [{
                "item": "kubejs:item_18"
            }, {
                "item": "bloodmagic:reagentfastminer"
            }, {
                "item": "betternether:cincinnasite_block"
            }, {
                "item": "thermal_extra:dragon_bronze_gear"
            }, {
                "item": "thermal_extra:vukaium_gear"
            }, {
                "item": "botania:manasteel_ingot"
            },]
        }
    ]



    //魔力池
    infusion_list = [
        {
            "input": { "item": 'botania:elementium_ingot' },
            "output": { "item": 'botania:manasteel_ingot' },
            "mana": 20000
        },
        {
            "input": { "item": 'minecraft:bucket' },
            "output": { "item": 'manaliquidizer:mana_fluid_bucket' },
            "mana": 500000
        },
        {
            "input": { "item": 'mythicbotany:dreamwood_twig_wand' },
            "output": { "item": 'botania:twig_wand' },
            "mana": 10000
        },
        {
            "input": { "item": 'evilcraft:blood_orb_filled' },
            "output": { "item": 'evilcraft:environmental_accumulation_core' },
            "mana": 500000
        },
        {
            "input": { "item": 'kubejs:pixie_block' },
            "output": { "item": 'astralsorcery:starmetal_ore' },
            "mana": 10000
        },
        {
            "input": { "item": 'botania:dragonstone' },
            "output": { "item": 'botania:mana_diamond' },
            "mana": 10000
        }
    ];



    //酿药
    event.custom({
        "type": "botania:brew",
        "brew": "botania:speed",
        "ingredients": [
            { "item": 'bloodmagic:quick_draw_anointment' },
            { "item": 'bloodmagic:fortune_anointment' },
            { "item": 'botania:life_essence' }
        ]
    });



    infusion_list.forEach((i) => {
        event.custom({
            "type": "botania:mana_infusion",
            "input": i.input,
            "output": i.output,
            "mana": i.mana
        });
    });


    /**
     * "botania:brew/speed":{"recipe":{"type":"botania:brew",
     * "brew":"botania:speed",
     * "ingredients":[
     * {"item":"minecraft:nether_wart"},{"item":"minecraft:sugar"},{"item":"minecraft:redstone"}]}}
     */


    elven_trade_list.forEach((i) => {
        event.custom({
            "type": "botania:elven_trade",
            "ingredients": i.ingredients,
            "output": i.output
        });
    })


    terra_plate_list.forEach((i) => {
        event.custom({
            "type": "botania:terra_plate",
            "mana": i.mana,
            "ingredients": i.ingredients,
            "result": i.result
        });
    });

    runic_altar_list.forEach((i) => {
        {
            event.custom({
                "type": "botania:runic_altar",
                "output": i.output,
                "mana": i.mana,
                "ingredients": i.ingredients
            });
        }
    });


    /**
     * "botania:runic_altar/water":{"recipe":{
     * "type":"botania:runic_altar",
     * "output":{"item":"botania:rune_water","count":2},
     * "mana":5200,
     * "ingredients":[{"tag":"forge:dusts/mana"},{"tag":"forge:ingots/manasteel"},{"item":"minecraft:bone_meal"},{"item":"minecraft:sugar_cane"},{"item":"minecraft:fishing_rod"}]},"inputs":[{"tag":"forge:dusts/mana"},{"tag":"forge:ingots/manasteel"},{"item":"minecraft:bone_meal"},{"item":"minecraft:sugar_cane"},{"item":"minecraft:fishing_rod"}],
     * "outputs":[{"item":"botania:rune_water","count":2}]}
     * 
     * 
     *  {
            output: 'refinedstorage:raw_advanced_processor',
            input: ['6x immersiveengineering:wire_steel', '2x emendatusenigmatica:enderium_nugget', 'refinedstorage:processor_binding'],
            energy: 2000
        },
        {
            output: 'refinedstorage:raw_basic_processor',
            input: ['6x immersiveengineering:wire_aluminum', '2x emendatusenigmatica:invar_nugget', 'refinedstorage:processor_binding'],
            energy: 2000
        },
        {
            output: 'refinedstorage:raw_improved_processor',
            input: ['6x immersiveengineering:wire_electrum', '2x emendatusenigmatica:lumium_nugget', 'refinedstorage:processor_binding'],
            energy: 2000
        },
     */

});
